package org.example.system.model.form;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.groups.Default;
import lombok.Data;
import org.example.system.validator.Group;
import org.example.system.validator.Status;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Schema(description = "轮播图表单对象")
@Data
public class CarouselForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description="轮播图编号")
    @NotNull(groups = {Group.Update.class}, message = "轮播图编号不能为空")
    private Integer id;

    @Schema(description="图片URL")
    //@NotBlank(groups = {Default.class}, message = "图片URL 不能为空")
    private String imageUrl;


    @Schema(description="链接地址")
    //@NotBlank(groups = {Default.class}, message = "链接地址不能为空")
    private String linkUrl;

    @Schema(description="上传文件对象")
    private MultipartFile file;

}
